package com.aia.prm.web.json;

import java.util.Map;

import org.apache.log4j.Logger;
import org.apache.struts2.interceptor.SessionAware;

import com.aia.ann.domain.Insu;
import com.aia.ann.service.ChiefService;
import com.aia.prm.domain.VOLms;
import com.aia.prm.service.DefaultService;
import com.cfh.util.Tools;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class PrmForm3Json extends ActionSupport implements SessionAware, ModelDriven {
	private static final Logger logger = Logger.getLogger(PrmForm3Json.class);
	private Map session;
	private DefaultService defaultService;
	private VOLms lms = new VOLms();
	private String newid;
	public void validate() {
	}

	public String execute() throws Exception {
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("PrmForm1Json - start"); //$NON-NLS-1$
			}
			
			defaultService.PrmForm3Json(this);
			
			if (logger.isDebugEnabled()) {
				logger.debug("PrmForm1Json - end"); //$NON-NLS-1$
			}
			
			return Tools.smartReturn((ActionSupport) this);
		} catch (Exception e) {
			logger.error("Unknown Error:" + e, e);
			throw new RuntimeException(e);
		}
	}

	public void setSession(Map session) {
		this.session = session;
	}
	
	public Map getSession() {
		return session;
	}

	public Object getModel() {
		return getLms();
	}



	public DefaultService getDefaultService() {
		return defaultService;
	}

	public void setDefaultService(DefaultService defaultService) {
		this.defaultService = defaultService;
	}

	public VOLms getLms() {
		return lms;
	}

	public void setLms(VOLms lms) {
		this.lms = lms;
	}

	public String getNewid() {
		return newid;
	}

	public void setNewid(String newid) {
		this.newid = newid;
	}



}
